home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000239_tom.horsley@att.net_Fri Jan 24 11:24:50 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  55 lines

  1. Article: 14031 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!iad-peer.news.verio.net!news.verio.net!newsfeed.vmunix.org!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
  3. Sender: tom@SPIKE
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Is this an infinite loop bug in find?
  6. From: tom.horsley@att.net (Thomas A. Horsley)
  7. Message-ID: <u7kcv5m5r.fsf@att.net>
  8. Lines: 35
  9. User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
  10. MIME-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. NNTP-Posting-Host: 87e748873747d365de554df3fb03da5e
  13. X-Complaints-To: abuse@worldnet.att.net
  14. X-Trace: bgtnsc05-news.ops.worldnet.att.net 1043374480 87e748873747d365de554df3fb03da5e (Fri, 24 Jan 2003 02:14:40 GMT)
  15. NNTP-Posting-Date: Fri, 24 Jan 2003 02:14:40 GMT
  16. Organization: AT&T Worldnet
  17. Date: Fri, 24 Jan 2003 02:14:40 GMT
  18. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14031
  19.  
  20. Details: Kermit 95 Version 2.1.3
  21.          Windows XP Professional
  22.  
  23. I'm trying to implement my conditional ssh-add stuff, and starting small
  24. with a single special case before I try to fancy it up and generalize it.
  25.  
  26. Here is a kermit script which works fine when I "take" it:
  27.  
  28. ssh agent list /fingerprint
  29. save command scrollback \v(tmpdir)keyfing.txt
  30. find /nolist 37:d3:8a:ed:a1:4c:cf:a9:bc:58:7b:a4:4f:51:bd:5d \v(tmpdir)keyfing.txt
  31. if failure {
  32.    ssh agent add \v(appdata)SSH/id_dsa
  33. }
  34.  
  35. Here's the same script changed to stash the fingerprint in a macro:
  36.  
  37. define myfinger 37:d3:8a:ed:a1:4c:cf:a9:bc:58:7b:a4:4f:51:bd:5d
  38. ssh agent list /fingerprint
  39. save command scrollback \v(tmpdir)keyfing.txt
  40. find /nolist \m(myfinger) \v(tmpdir)keyfing.txt
  41. if failure {
  42.    ssh agent add \v(appdata)SSH/id_dsa
  43. }
  44.  
  45. When I run this version, it seems to get down to the find command and sit
  46. there using infinite amounts of CPU time.
  47.  
  48. Actually, if I just manually define a similar macro and use it as the
  49. pattern in a find command, it seems to do the same thing, so the "take" and
  50. the surrounding script is probably unimportant.
  51. --
  52. >>==>> The *Best* political site <URL:http://www.vote-smart.org/> >>==+
  53.       email: Tom.Horsley@worldnet.att.net icbm: Delray Beach, FL      |
  54. <URL:http://home.att.net/~Tom.Horsley> Free Software and Politics <<==+
  55.